package com.macro.mall.model.response;

import lombok.Data;
import java.util.List;

/**
 * 查询核销信息响应DTO
 */
@Data
public class CouponVerifyResponseDTO {
    private Boolean success;
    private String msg;
    private Integer code;
    private CouponVerifyData data;

    @Data
    public static class CouponVerifyData {
        private List<CouponInfo> couponInfoList;  // 券列表

        @Data
        public static class CouponInfo {
            private String couponCode;      // 券唯一编码
            private Integer status;         // 验券状态
            private String productId;       // 商品id
            private String productName;     // 商品名称
            private String orderId;         // 订单id
            private String thirdOrderId;    // 三方订单id
            private String deliveryRecordId; // 履约单id
            private VerifyDetail verifyDetail; // 核销明细

            @Data
            public static class VerifyDetail {
                private String sellerId;     // 商家id
                private String poiId;       // 门店id
                private String poiName;     // 门店名称
                private Long verifyTime;    // 验券时间(毫秒时间戳)
                private Long payAmount;     // 核销金额(分)
                private String verifyId;    // 核销记录id
                private String failMsg;     // 失败原因
                private String extraInfo;   // 扩展信息
            }
        }
    }
}
